#include "wuMarManager.h"

wuMarManager::wuMarManager()
{

}

wuMarManager::~wuMarManager()
{
}

void wuMarManager::setup(ofxBox2d * _box2d, int _vw, int _vh)
{
    wuBase2dManager::setup(_box2d,_vw,_vh);
    setMaxBlobSize(vh*vw);
	bBypass = true;
}

void wuMarManager::addBitxo(ofImage *_skin, ofRectangle rect, vector <ofPoint> * _pts)
{
	mar.clear();
	mar.setup(_skin, rect, _pts);
}

void wuMarManager::draw(bool bDrawlines, int offX)
{
	if(!bBypass)
	{
	    if(bScrollable)
            mar.draw(bDrawlines, offX);
        else
            mar.draw(bDrawlines, 0);
	}
}

void wuMarManager::clear()
{
	mar.clear();
}

int wuMarManager::getNivell(ofPoint pos)
{
   return mar.getNivell(pos);
}
